package cn.com.dhcc.turbo.entity.monitor.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.monitor.MonitorShowVO;

public class MonitorShowRowWapper  implements RowMapper<MonitorShowVO> {

	@Override
	public MonitorShowVO mapRow(ResultSet rss, int rowNum)
			throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		MonitorShowVO vo = new MonitorShowVO();
		vo.setCode(rs.getString("code"));
		vo.setValue(rs.getString("value"));
		vo.setAlert(rs.getString("alert"));
		return vo;
	}
}
